package com.appkubes.mall.core.service;

import com.appkubes.base.core.mbp.AbstractBaseService;
import com.appkubes.mall.core.dao.BaseMallGoodsIndexDao;
import com.appkubes.mall.core.entity.MallGoodsIndex;

import com.appkubes.base.core.entity.vo.PageVO;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @author Rongjie
 * @description
 */

public interface BaseMallGoodsIndexService extends AbstractBaseService<BaseMallGoodsIndexDao, MallGoodsIndex> {

    MallGoodsIndex getOneByEntity(MallGoodsIndex entity);

    List<MallGoodsIndex> selectListByEntity(MallGoodsIndex entity);

    IPage<MallGoodsIndex> selectPageByEntity(IPage<MallGoodsIndex> page);
    IPage<MallGoodsIndex> selectPageByEntity(PageVO pageVO);

    IPage<MallGoodsIndex> selectPageByEntity(MallGoodsIndex entity, IPage<MallGoodsIndex> page);
    IPage<MallGoodsIndex> selectPageByEntity(MallGoodsIndex entity, PageVO pageVO);

    IPage<MallGoodsIndex> selectPageByEntity(MallGoodsIndex entity, Integer pageNo, Integer pageSize);

    Boolean removeByEntity(MallGoodsIndex entity);
}
